package com.example.demo_hilt

import android.os.Bundle
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import com.example.demo_hilt.demo.User
import com.example.demo_hilt.demo.User2
import com.example.demo_hilt.demo_module.ApiService1
import com.example.demo_hilt.demo_module.RetrofitManager.Retrofit1
import dagger.hilt.android.AndroidEntryPoint
import retrofit2.Retrofit
import javax.inject.Inject
@AndroidEntryPoint
class MainActivity : AppCompatActivity() {
    @Inject
    lateinit var user: User
    @Inject
    lateinit var user2: User2

    @Inject
    @Retrofit1
    lateinit var retrofit:Retrofit

    @Inject
    lateinit var apiService1: ApiService1


    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        enableEdgeToEdge()
        setContentView(R.layout.activity_main)
        user.showUser()
        user2.showUser2()


    }
}